package com.dz.lm.dao.userproduct.read;

import com.dz.lm.common.exception.DaoException;
import com.dz.lm.common.utils.stereotype.ReaderRepository;
import com.dz.lm.domain.attach.AttachExample;
import com.dz.lm.domain.userproduct.UserProduct;
import com.dz.lm.domain.userproduct.UserProductExample;

import java.util.List;
import java.util.Map;

@ReaderRepository("readUserProductDao")
public interface UserProductDao {


    List<UserProduct> selectByExample(UserProductExample example) throws DaoException;

    UserProduct selectByPrimaryKey(Integer productId)throws DaoException;

    int querCount(UserProductExample example) throws DaoException;

    int querCountDist(UserProductExample example) throws DaoException;

    List<UserProduct> querSends(Map map) throws DaoException;

    List<UserProduct> Recommend(Map map) throws DaoException;

    List<UserProduct> queryaAgentUser(Map map )throws DaoException;

    int queryaAgentUserCount(Map map) throws DaoException;

}